package com.example.dml.decorator_pattern.high2;

/**
 * @Authors：gaoyang
 * @CreateTime：2021-11-01
 * @Description：第三方登录自由适配
 */
public class SignInForThirdService implements ISignInForThirdService{

    private ISignService signService;

    public SignInForThirdService(ISignService signService) {
        this.signService = signService;
    }

    public ResultMsg regist(String username,String password){
        return signService.regist(username,password);
    }

    public ResultMsg login(String username,String password){
        return signService.login(username,password);
    }
    @Override
    public ResultMsg loginForQQ(String id) {
        return null;
    }

    @Override
    public ResultMsg loginForWechat(String id) {
        return null;
    }

    @Override
    public ResultMsg loginForToken(String token) {
        return null;
    }

    @Override
    public ResultMsg loginForTelphone(String tel, String code) {
        return null;
    }

    @Override
    public ResultMsg loginForRegist(String username, String password) {
        return null;
    }
}
